Ext.regModel('FriendList', {
	fields : [ 
	{		
		name : 'photo',
		type : 'string'
	},
	{
		name : 'name',
		type : 'string'
	}, {
		name : 'phoneNumber',
		type : 'string'
	},  ]
});

var objStoreListener = {
	add : function() {
		console.log("add");
	},
	beforeload : function() {
		console.log("beforeload");
	},
	datachanged : function() {
		console.log("datachanged");
	},
	exception : function() {
		console.log("exception");
	},
	load : function() {
		console.log("load");
	},
	remove : function() {
		console.log("remove___");
	},
	update : function() {
		console.log("loadexception");
	}
}

// 2. 데이터 생성.
var objData = [ 
	{photo : "윤선응", name : "3월 7일", phoneNumber : "01123451234" },
];

var dataStore = new Ext.data.Store({
	autoLoad : true,
	model : 'FriendList',
	data : objData,
	listeners : objStoreListener
});

var friend_list = new Ext.List( {
	fullscreen : true,
	store : dataStore,
	itemTpl : '<div class="contact2"><img src={photo}/><strong>{name}</strong> {callDate}<br/>{phoneNumber}</div>'
} );